﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;

namespace Infinity.Expressions
{
	public partial class LoopBuilder : Expression
	{
		public override bool CanReduce
		{
			get
			{
				return true;
			}
		}

		public override ExpressionType NodeType
		{
			get
			{
				return ExpressionType.Extension;
			}
		}

		public override Expression Reduce()
		{
			return LoopExpression.Reduce();
		}

		public override Type Type
		{
			get
			{
				return LoopExpression.Type;
			}
		}

		protected override Expression VisitChildren(ExpressionVisitor visitor)
		{
			return visitor.Visit(LoopExpression);
		}
	}
}
